package unknow;

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author 李栋
 * @version 1.0.0
 * @className SwitchTest.java
 * @createTime 2021年06月12日 17:48:00
 */
public class SwitchTest {

    private static final Logger logger = LoggerFactory.getLogger(SwitchTest.class);

    @Test
    @SuppressWarnings("all")
    public void test() {
        int a = 1;
        switch (a) {
            case 1:
                logger.info("1");
                break;
        }

        char i = 'A';
        switch (i) {
            case 'A':
                logger.info("A");
                break;
        }

        byte b = new Byte("str").byteValue();
        switch (b) {
            case 'd':
                logger.info("A");
                break;
        }

        String str = "zhangsan";
        switch (str) {
            case "lisi":
                logger.info("A");
                break;
        }

    }

}
